package cn.skyquant.quant4j.api.quant.jforex;


import cn.skyquant.quant4j.api.dto.ResultDTO;
import cn.skyquant.quant4j.api.quant.Tick;
import cn.skyquant.quant4j.api.quant.TimeBar;
import cn.skyquant.quant4j.sdk.enums.TradeDirection;
import cn.skyquant.quant4j.sdk.util.time.Period;

import java.util.List;

public interface JForexService {
    boolean start();
    boolean stop();
    boolean isStart();
    ResultDTO<JForexAccount> getAccount();
    ResultDTO<List<TimeBar>> getBar(String symbol, Period period, TradeDirection td, String from, String to);
    ResultDTO<Tick> getLastTick(String symbol);
    ResultDTO<List<Tick>> getAllTick();
    ResultDTO<Long> getTime();
    ResultDTO error = ResultDTO.error("jforex未连接");
}
